import type { Preview } from "@storybook/react";
// 组件的样式以及动画icon等
import { library } from "@fortawesome/fontawesome-svg-core";
import { fas } from "@fortawesome/free-solid-svg-icons";
import '../src/styles/index.scss'
library.add(fas)

const preview: Preview = {
  parameters: {
    controls: {
      matchers: {
        color: /(background|color)$/i,
        date: /Date$/i,
      },
    },
    options: {
      storySort: {
        order: ['Welcome', 'Button 按钮', 'Alert 警告提示', 'Icons 图标', 'Menu 导航菜单', 'Tabs 标签页', 'Input 输入框', 'AutoComplete 自动补全', '第九章作业：Select', '第十章：Upload'], 
      },
    },
  },
};

export default preview;
